import 'package:get/get.dart';

// extension ChannelExtension on Channel {
//   int get waitCount => waitQueue.length + carOwnerMicQueue.length;
//   bool get isDouFeng => roomTypeObj.type == RoomType.JOY_RIDE;
//   bool get isHotHall => roomTypeObj.type == RoomType.HOT_HALL;

//   bool get isOwner => role == RtcUserRole.Owner;

//   /// 自己是接待
//   bool get isReception => role == RtcUserRole.Receptionist;

//   /// 自己是管理
//   bool get isNormalManager => role == RtcUserRole.Manager;

//   bool get isManager => isOwner || isReception || isNormalManager;

//   SimpleChannelUser? get boss => broadcaster.firstWhereOrNull((_) => _.micType == MicTypeEnum.CAR_OWNER_MIC)?.user;

//   bool get hasCar => boss?.hasCar()??false;

//   CarMetaInfo? get carInfo {
//     if (boss == null) return null;
//     if(hasCar) return boss!.car.carMetaInfo;
//     if(boss!.hasTmpCarMetaInfo()) return boss!.tmpCarMetaInfo;
//     return null;
//   }

// }
